package com.zmzncs.lmtc.module.customer.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.customer.pojo.car.Car;
import com.zmzncs.lmtc.module.customer.pojo.car.CarDTO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 客户-车辆 Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-08-31
 */
@Repository
public interface CarDao extends BaseMapper<Car> {

    /**根据id获取车辆*/
    CarDTO getCarById(Long id);
    /**获取客户车辆*/
    List<CarDTO> getCustomerCarList(Long customerId);
    /**根据车牌号获取车辆*/
    CarDTO getCarByCarNumber(String carNumber);
    /**根据车牌号获取车辆*/
    CarDTO getCustCarByCarNumber(String carNumber);

}
